package hl.games.tankwar.factorys;

import hl.games.tankwar.core.AExplodsion;
import hl.games.tankwar.core.ATank;
import hl.games.tankwar.entity.ExplodesionNormal;
import hl.games.tankwar.ui.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public abstract class ExplodsionFactory {
	
	public static AExplodsion CreatExplodsion(Context context, ATank tank){
		Bitmap explodeBitmap=BitmapFactory.decodeResource(context.getResources(), R.drawable.explode);
		AExplodsion explodsion=new ExplodesionNormal(context,explodeBitmap,tank.getX(),tank.getY(),16,16);	
		return explodsion;
	}
}
